//
//  EvaluateTableViewCell.m
//  Project_A Gary
//
//  Created by leilei on 16/3/29.
//  Copyright © 2016年 www.lei.com. All rights reserved.
//

#import "EvaluateTableViewCell.h"

@implementation EvaluateTableViewCell



-(void)dealloc
{
    [super dealloc];
    [_leftImgView release];
    [_titleLab release];
    [_timeLab release];
    [_countLab release];
    
}


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
   self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    
    self.leftImgView = [[UIImageView alloc] init];
    [self.contentView addSubview:self.leftImgView];
    [_leftImgView release];
    
    self.titleLab = [[UILabel alloc] init];
    self.titleLab.numberOfLines = 0;
    self.titleLab.textColor = [UIColor blackColor];
    self.titleLab.font = [UIFont systemFontOfSize:16];
    [self.contentView addSubview:self.titleLab];
    [_titleLab release];
    
    self.timeLab = [[UILabel alloc] init];
    self.timeLab.textColor = [UIColor lightGrayColor];
    self.timeLab.numberOfLines = 0;
    self.timeLab.font = [UIFont systemFontOfSize:10];
    [self.contentView addSubview:self.timeLab];
    [_timeLab release];
    
    self.countLab = [[UILabel alloc] init];
    self.countLab.numberOfLines = 0;
    self.countLab.font = [UIFont systemFontOfSize:10];
    self.countLab.textColor = [UIColor lightGrayColor];
    [self.contentView addSubview:self.countLab];
    [_countLab release];
    
    
    return self;
}



- (void)layoutSubviews
{
    [super layoutSubviews];
    self.leftImgView.frame = CGRectMake(10, 5, 90, 70);
    self.titleLab.frame = CGRectMake(10 + 90 + 10, 5, 250, 40);
    self.countLab.frame = CGRectMake(10 + 90 + 10, 60, 50, 20);
    self.timeLab.frame = CGRectMake(10 + 90 + 10 + 150, 60, 90, 20);
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
